package com.college.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="TEACHING_FACULITY")
public class Faculty {

	private int facultyId;
	private String firstName;
	private String lastName;
	private Date doj;
	private Date dob;
	private String designation;
	private int deptId;
	private String email;
	private String status;
	private String sex;
	private int roleId;
	public Faculty(){
		
	}

	


	public Faculty(int facultyId, String firstName, String lastName, Date doj,
			Date dob, String designation, int deptId, String email,
			String status, String sex, int roleId) {
		super();
		this.facultyId = facultyId;
		this.firstName = firstName;
		this.lastName = lastName;
		this.doj = doj;
		this.dob = dob;
		this.designation = designation;
		this.deptId = deptId;
		this.email = email;
		this.status = status;
		this.sex = sex;
		this.roleId = roleId;
	}




	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name="FACULITY_ID")
	public int getFacultyId() {
		return facultyId;
	}

	public void setFacultyId(int facultyId) {
		this.facultyId = facultyId;
	}
	@Column(name="FACULITY_FIRST_NAME")
	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	@Column(name="FACULITY_LAST_NAME")
	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	@Column(name="DOJ")
	public Date getDoj() {
		return doj;
	}


	public Date getDob() {
		return dob;
	}

	public void setDob(Date dob) {
		this.dob = dob;
	}

	public void setDoj(Date doj) {
		this.doj = doj;
	}

	
	public String getDesignation() {
		return designation;
	}

	public void setDesignation(String designation) {
		this.designation = designation;
	}

	@Column(name="EMAIL")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	@Column(name="STATUS")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	@Column(name="SEX")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Column(name="DEPT_ID")
	public int getDeptId() {
		return deptId;
	}



	public void setDeptId(int deptId) {
		this.deptId = deptId;
	}


	@Column(name="ROLE_ID")
	public int getRoleId() {
		return roleId;
	}


	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}
	
	
}
